<?php

namespace App\Http\Controllers\admin;

use App\Http\model\Config;
use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Input;

class ConfigController extends CommonController
{
    //网站配置列表 get/admin/config
    public function index()
    {
        $data = [];
        return view('admin.config.index')->with('data',$data);
    }

    //添加网站配置表单 get admin/config/create
    public function create()
    {
       return view('admin.config.add');
    }

    //处理网站配置添加 post admin/config
    public function store()
    {
       $input = Input::except('_token');
    }



    //显示网站配置修改的表单 get admin/config/{conf_id}/edit
    public function edit($conf_id)
    {
        $row = Config::find($conf_id);
        return view('admin.config.edit')->with('data',$row);
    }

    //处理网站配置修改 put admin/config/{conf_id}
    public function update(Request $request, $id)
    {
        //
    }

    //删除网站配置数据  delete admin/config/{conf_id}
    public function destroy($id)
    {
        //
    }

    /**
     * Display the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function show($id)
    {
        //
    }
}
